﻿using System.ComponentModel.DataAnnotations;

namespace HCQ2WebAPI_Logic.Model
{
    public class VRLoginModel
    {
        /// <summary>
        ///  登录名
        /// </summary>
        [Required(ErrorMessage = "登录名必填项！")]
        public string user_name { get; set; }
        /// <summary>
        ///  密码
        /// </summary>
        [Required(ErrorMessage = "密码必填项！")]
        public string user_password { get; set; }
        /// <summary>
        ///  语言cn、en、ja
        /// </summary>
        public string langCode { get; set; } = "cn";
        /// <summary>
        ///  登录来源
        ///  app：APP
        ///  vr：VR设备
        ///  wechat：微信
        ///  web：浏览器
        ///  pc：PC客户端
        ///  bm：后台管理
        ///  mobile：移动设备
        /// </summary>
        public string login_source { get; set; } = "pc";
        /// <summary>
        ///  登录项目
        /// 都都圈： VCircle
        ///  VLions：VLions
        ///  元宇宙：VMeta
        /// </summary>
        public string pro_type { get; set; } = "VLions";
    }
    /// <summary>
    ///  登录模型
    /// </summary>
    public class UseLoginModel
    {
        /// <summary>
        ///  登录名或手机号
        /// </summary>
        [Required(ErrorMessage = "登录名或手机号必填项！")]
        public string userName { get; set; }
        /// <summary>
        ///  密码
        /// </summary>
        [Required(ErrorMessage = "密码必填项！")]
        public string userPwd { get; set; }
        /// <summary>
        ///  语言 【cn、en、ja】
        /// </summary>
        public string langCode { get; set; } = "cn";
        /// <summary>
        ///  登录来源 【app、vr、wechat、web、pc、bm、mobile】
        /// </summary>
        public string loginSource { get; set; } = "app";
        /// <summary>
        ///  登录项目
        /// 都都圈： VCircle
        ///  VLions：VLions
        ///  元宇宙：VMeta  
        /// </summary>
        public string proType { get; set; } = "VMeta";
    }
    /// <summary>
    ///  判断当前机器是否可用模型
    /// </summary>
    public class UseVrModel
    {
        /// <summary>
        ///  用户guid
        /// </summary>
        [Required(ErrorMessage = "guid必填项！")]
        public string userid { get; set; }
        /// <summary>
        ///  机器码
        /// </summary>
        [Required(ErrorMessage = "机器码必填项！")]
        public string machine_code { get; set; }
    }
}
